/*
 * mdVisualizacion.h
 *
 *  Created on: 09-may-2009
 *      Author: Luis
 */

#ifndef MDVISUALIZACION_H_
#define MDVISUALIZACION_H_
#include <QGLWidget>
#include <QString>
#include <QMouseEvent>
#include <QWheelEvent>
#include <iostream>
class mdVisualizacion : public QGLWidget{
	Q_OBJECT
public:
	mdVisualizacion(QWidget *parent = 0);
	virtual ~mdVisualizacion();
protected:
    void initializeGL();
    void paintGL();
    void resizeGL(int, int);
    void keyPressEvent(QKeyEvent *event);
    void mousePressEvent(QMouseEvent*);
    void mouseMoveEvent (QMouseEvent*);
    void wheelEvent(QWheelEvent *e);

private:
	int windowWidth;
	int windowHeight;

	int xant, yant;		//Variables para manejo del Mouse

	float rotarx;		//
	float rotary;		// Variables para la rotacion
	float rotarz;		//

	float traslation[3];
	float center[3];
	float scale;

};

#endif /* MDVISUALIZACION_H_ */
